﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_Basic_Information.aspx.cs" Inherits="admin_Basic_Information" %>
<%@ Import Namespace="Net.Ntalent.Action50.Core.Util"%>
<%@ Import Namespace="Net.Ntalent.Action50.DataAccess"%>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Admin_Basic_Information</title>
<link type="text/css" rel="stylesheet" href="css/common.css" />
<link type="text/css" rel="stylesheet" href="css/admin.css" />
<link type="text/css" rel="stylesheet" href="css/scrollBar.css" />
<script type="text/javascript" src="js/scrollBar.js"></script>

<!--下拉框所用文件S-->
<script type="text/javascript" src="js/navList.js"></script>
<!--下拉框所用文件E-->
<!-- 弹出框所用头文件 S-->

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<!--[if IE 6]>
<style type="text/css">
* html,* html body /* 修正IE6振动bug */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top /* IE6 头部固定 */{position:absolute;margin-top:100px;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
</style>
<![endif]-->
<!--[if IE 6]>
<script src="js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
<script type="text/javascript">
DD_belatedPNG.fix('div, ul, img, li, input');
</script>
<![endif]-->
<!-- 弹出框所用头文件 E-->


    
    


<!-- 文件上传控件 S -->
<link rel="Stylesheet" href="js/uploadify.css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.uploadify.js"></script> 
<script type="text/javascript">
    $(document).ready(function() {
        $('#uploadify').fileUpload({
         'width':'132',
            'height':'33',
            'uploader': 'fileupload/uploader.swf',
            'script': 'Handlers/GallaryHandler.ashx',
              'fileDesc':"*.jpg;*.gif;*.png;*.jpeg;*.bmp",
	         'fileExt':"*.jpg;*.png;*.gif;*.jpeg;*.bmp",
            'sizeLimit': '500000',
            'cancelImg': 'fileupload/cancel.png',
            'buttonImg': 'fileupload/browse.png',
            'scriptData': { 'action': 'uploadImage', 'gallaryType': '0', 'actionId': getActionId(), 'gallaryDesc': '' },
            'onAllComplete': function() { window.location.reload(); },
            'auto':'true'
        });
    });
</script>
<!-- 文件上传控件 E -->



<script language="javascript">
    function getActionId() {
        if (window.location.search == "") {
            return "";
        }
        else {
            var str = window.location.search.substring(1, window.location.search.length);
            var arry = str.split("&");
            var r = arry[0];
            var result = r.split("=")[1];
            return result;

        }
    }

</script>






</head>

<body>
<form runat="server">
<div class="wrappera">
	<div class="wrapperb">
		<!-- 界面头部 S -->
		<div id="head" class="head">
			<!-- 界面头部 网站LOGO S -->
			<div id="site_logo">
			</div>
			<!-- 界面头部 网站LOGO E -->
			<div id="site_signal">Action Management</div>
			<!-- 界面头部 网站导航栏 S -->
			<div class="site_nav">
				<ul>
					<li class="nowPaged right"><a href="Default.aspx">HOME</a></li>
				</ul>
			</div>
			<!-- 界面头部 网站导航栏 E -->
		</div>
		<!-- 界面头部 E -->

		<!-- 界面主体部分 S -->
		<div class="mainBody">
			<div class="admin_box">
				<!-- 界面主体 管理界面导航栏 S -->
				<div class="admin_nav">
					<ul>
						<li class="nowPage" id="basicInfo"><a href="#">Basic Information</a></li>
						<li ><a href="admin_Logs_View.aspx?actionId=<%=Request["actionId"] %>">Log</a></li>
						<li><a href="admin_News_View.aspx?actionId=<%=Request["actionId"] %>">News</a></li>
						<li><a href="admin_Gallary.aspx?actionId=<%=Request["actionId"] %>">Gallery</a></li>
					</ul>
				</div>
				<!-- 界面主体 管理界面导航栏 E -->

				<!-- 界面主体 管理界面 用户信息 S -->
				<div class="userInfo">
					<img src="images/img_userFace.jpg" alt="" />
					<span>Welcome</span><span id="userName"><%=Session[Constants.SESSION_KEY_ADMIN_NAME]%></span><asp:LinkButton
ID="LinkButton2" runat="server" onclick="LinkButton2_Click">Logout</asp:LinkButton></div>
				<!-- 界面主体 管理界面 用户信息 S -->
				<!-- 界面主体 管理界面 信息列表 S -->
				<div class="newsList">
					<h2>
                        <a href="admin_Action_List.aspx">Admin > </a>  
                        <a href="admin_Basic_Information.aspx?actionId=<%=Request["actionId"] %>"> <%=Helper.getActionNameById(Convert.ToInt64(Request["actionId"])) %> > </a> 
                        Basic Information
                        
                    </h2>
					<div class="newsListContent">
						<div class="area Name">
							<span class="identifier">Name:</span>

<asp:TextBox id="tb_Name" class="inputA" runat="server"></asp:TextBox>

<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ErrorMessage="Maximum length is 100" ControlToValidate="tb_Name" 
                                Display="Dynamic" ForeColor="#CC3300" ValidationExpression=".{1,100}"></asp:RegularExpressionValidator>
					    <span class="input_tips">Input characters less than 100 here</span>
						</div>
<div class="area Member">
    <span class="identifier">Member:</span>
    <asp:TextBox id="tb_Member" class="inputA" runat="server"></asp:TextBox>

<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
        ErrorMessage="Must be a numeral" ControlToValidate="tb_Member" 
        Display="Dynamic" ForeColor="#CC3300" ValidationExpression="\d*"></asp:RegularExpressionValidator>
        <span class="input_tips">Input a numeral here</span>
</div>
						<div class="area Logo">
							<span class="identifier" id="Logo">Logo:</span>
							<div class="LogoWrapper">
								<div class="area UpLoad">
									<div class="logoPhoto">
										<img id="logo" src="Handlers/GallaryHandler.ashx?action=getLogo&actionId=<%=Request["actionId"]%>" alt="" />
									</div>
									<p>100*100 would be perfect
										please use .png or .jpg or .gif type
										no more than 500kb</p>
								</div>

<asp:FileUpload ID="uploadify" runat="server"/>





							</div>
						</div> 
						<div class="area Teams">
							<span id="Teams" class="identifier">About our action:</span>
							<div id="Scroll" onselectstart="return false" onmousewheel="ScrollWheel()">


<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                                    ErrorMessage="Maximum length is 400" ControlToValidate="ScroLeft" 
                                    Display="Dynamic" ForeColor="#CC3300" ValidationExpression=".{1,400}"></asp:RegularExpressionValidator>							
<asp:TextBox id="ScroLeft" runat="server" TextMode="MultiLine"></asp:TextBox>
								<div id="ScroRight" onclick="ScroNow(event)">
									<img class="BarTop" src="images/scrollBarTop.jpg" alt="" />
									<div id="ScroLine" OnMouseDown="ScroMove()"></div>
									<img class="BarBottom" src="images/scrollBarBottom.jpg" alt="" />
								</div>
							</div>
                            <span class="input_tips">Input characters less than 400 here</span>
						</div>
						<div class="area AboutTeam">
							<span class="identifier left">Teams:</span>
							<div id="tb_AboutTeam">


                       <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server"  
                                    Height="320px">
                                </FCKeditorV2:FCKeditor>
                            </div>
						</div>
						<div class="area Submit">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="tb_Name" Display="None" 
                                ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
<asp:LinkButton class="linkE" ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Submit</asp:LinkButton>
						</div> 
					    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="ScroLeft" Display="None" 
                            ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
					</div>
				</div>
				<!-- 界面主体 管理界面 信息列表 E -->
			</div>
			
		</div>
		<!-- 界面主体部分 E -->
		
		<!-- 界面尾部 S -->
		<div id="footer" class="footer">
		</div>
		<!-- 界面尾部 E -->


	</div>
</div>

<!--pop窗口实现 S-->
<div id="alpha" >
     <div class="popup fixed-top">
	        <h1>
		        <a class="closePopsup"></a>
	        </h1>
	        <div class="area_message">
	        <p>
		        <asp:Label ID="Message" runat="server" Text="Message"></asp:Label>
        		
	        </p>
	        </div>
	        <p class="forBtn">
<asp:LinkButton class="button1 linkE" ID="LinkButton3" runat="server" 
                    onclick="LinkButton3_Click">OK</asp:LinkButton>

	        </p>
        </div>
</div>
    <asp:Literal ID="popupCmd" runat="server" Text=""></asp:Literal>
 <!--pop窗口实现 E-->   
</form>
</body>

</html>